# -*- coding:utf-8 -*-
from Util import loadTestData
import os
import pytest

suitename = {"test_publciLoginPage": "publicLoginPage"}

data, casename = loadTestData.get_jsonTestData(loadTestData.getDataPath(os.path.dirname(__file__), "yml"),
                                               suitename["test_publciLoginPage"])


@pytest.fixture(params=data, ids=casename, scope="class")
def publciLoginPage_testdata(request) -> dict:
    # 返回数据
    return request.param


if __name__ == '__main__':
    print(data)
    print(casename)
    print(loadTestData.get_dataPath(os.path.dirname(__file__)))
    print(os.path.dirname(__file__))
